<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Projet Jetpack:  Fichier source de /home/p1006250/lif7-projet-jetpack/src/Sprite.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Projet Jetpack
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li><a href="dirs.html"><span>Répertoires</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_sprite_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Sprite.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_sprite_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef _FSPRITE_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define _FSPRITE_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="_personnage_8h.html">Personnage.h</a>&quot;</span>
<a name="l00004"></a>00004 
<a name="l00005"></a><a class="code" href="_sprite_8h.html#a3af35b2f3ecf099e959f98d3aaa558a5">00005</a> <span class="preprocessor">#define SGN(X) (((X)==0)?(0):(((X)&lt;0)?(-1):(1)))</span>
<a name="l00006"></a><a class="code" href="_sprite_8h.html#adefab4344518e9d35a80d87c20c0fa48">00006</a> <span class="preprocessor"></span><span class="preprocessor">#define ABS(X) ((((X)&lt;0)?(-(X)):(X)))</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span>
<a name="l00008"></a><a class="code" href="_sprite_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">00008</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structs_terrain.html">sTerrain</a> <a class="code" href="structs_terrain.html">Terrain</a>;
<a name="l00009"></a><a class="code" href="_sprite_8h.html#a4270324e31f01ad8e422e586039f8263">00009</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structs_personnage.html">sPersonnage</a> <a class="code" href="struct_personnage.html">Personnage</a>;
<a name="l00010"></a>00010 
<a name="l00015"></a><a class="code" href="struct_ssprite.html">00015</a> <span class="keyword">struct </span><a class="code" href="struct_ssprite.html">Ssprite</a>
<a name="l00016"></a>00016 {
<a name="l00017"></a><a class="code" href="struct_ssprite.html#ac66841fecf0c4dc876df62666230397f">00017</a>         <a class="code" href="structs_terrain.html">Terrain</a>* <a class="code" href="struct_ssprite.html#ac66841fecf0c4dc876df62666230397f">pTer</a>;
<a name="l00018"></a><a class="code" href="struct_ssprite.html#a23d6f3a2d48515246a2f24df40381d1f">00018</a>         <a class="code" href="struct_personnage.html">Personnage</a>* <a class="code" href="struct_ssprite.html#a23d6f3a2d48515246a2f24df40381d1f">pPer</a>;
<a name="l00019"></a>00019 };
<a name="l00020"></a><a class="code" href="_sprite_8h.html#a024e9adfdc8e0b14345d217083886e94">00020</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct_ssprite.html">Ssprite</a> <a class="code" href="struct_sprite.html">Sprite</a>;
<a name="l00021"></a>00021 
<a name="l00029"></a>00029 <a class="code" href="struct_sprite.html">Sprite</a>* <a class="code" href="_sprite_8c.html#a4b649c7fe373641fefdc8c50f1170c57" title=" Brief Description  Initialise un sprite.  ">InitialiserSprite</a>(<a class="code" href="struct_sprite.html">Sprite</a> * pSprite, <span class="keywordtype">int</span> x,<span class="keywordtype">int</span> y,<span class="keywordtype">int</span> w,<span class="keywordtype">int</span> h,<a class="code" href="structs_terrain.html">Terrain</a>* <a class="code" href="struct_ssprite.html#ac66841fecf0c4dc876df62666230397f">pTer</a>);
<a name="l00030"></a>00030 
<a name="l00037"></a>00037 <span class="keywordtype">int</span> <a class="code" href="_sprite_8c.html#a6386c317dab4e793e117656d019376aa" title=" Brief Description  Libere la mémoire allouée. ">LibereSprite</a>(<a class="code" href="struct_sprite.html">Sprite</a>*);
<a name="l00038"></a>00038 
<a name="l00045"></a>00045 <span class="keywordtype">int</span> <a class="code" href="_sprite_8c.html#a41e42de1a10a407b6eca7aaa3ea90d6c" title=" Brief Description  Test la collision.  ">CollisionDecors</a>(<a class="code" href="struct_sprite.html">Sprite</a>* perso);
<a name="l00046"></a>00046 
<a name="l00053"></a>00053 <span class="keywordtype">int</span> <a class="code" href="_sprite_8c.html#a8f37e5a75884af1c0c38a4caf9130092" title=" Brief Description  Test si un déplacement est possible.  ">EssaiDeplacement</a>(<a class="code" href="struct_sprite.html">Sprite</a>* perso,<span class="keywordtype">int</span> vx,<span class="keywordtype">int</span> vy);
<a name="l00054"></a>00054 
<a name="l00061"></a>00061 <span class="keywordtype">void</span> <a class="code" href="_sprite_8c.html#af9dedf702925d0d52c312f7a1b228144" title=" Brief Description  Affine la collision. ">Affine</a>(<a class="code" href="struct_sprite.html">Sprite</a>* perso,<span class="keywordtype">int</span> vx,<span class="keywordtype">int</span> vy);
<a name="l00062"></a>00062 
<a name="l00063"></a>00063 
<a name="l00071"></a>00071 <span class="keywordtype">int</span> <a class="code" href="_sprite_8c.html#aac6a72bc14350b6bd51616dba329fe1d" title=" Brief Description  Test si les déplacements sont possibles.  ">DeplaceSprite</a>(<a class="code" href="struct_sprite.html">Sprite</a>* perso,<span class="keywordtype">int</span> vx,<span class="keywordtype">int</span> vy);
<a name="l00072"></a>00072 
<a name="l00079"></a>00079 <span class="keywordtype">int</span> <a class="code" href="_sprite_8c.html#a74d0672b51f6223f75d4327e049d4b17" title=" Brief Description  Test si le personnage est mort(fin de partie).  ">persMort</a>(<a class="code" href="struct_sprite.html">Sprite</a> * perso,<span class="keywordtype">int</span> vx, <span class="keywordtype">int</span> vy);
<a name="l00080"></a>00080 
<a name="l00088"></a>00088 <span class="keywordtype">int</span> <a class="code" href="_sprite_8c.html#affba9d86f8ae9fe08348877045147d9f" title=" Brief Description  Met à jour le scrolling.  ">UpdateScroll</a>(<a class="code" href="structs_terrain.html">Terrain</a>* <a class="code" href="struct_ssprite.html#ac66841fecf0c4dc876df62666230397f">pTer</a>, <a class="code" href="struct_sprite.html">Sprite</a> * pSprite);
<a name="l00089"></a>00089 
<a name="l00090"></a>00090 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_sprite_8h.html">Sprite.h</a>      </li>

    <li class="footer">Généré le Lundi Décembre 17 2012 01:09:40 pour Projet Jetpack par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
